"use strict";
exports.__esModule = true;
exports.SignNonceStr = void 0;
var ts_md5_1 = require("ts-md5");
var fun_1 = require("./fun");
function SignNonceStr(len) {
    if (len === void 0) { len = 20; }
    var str = ts_md5_1.Md5.hashStr((0, fun_1.random)(1000, 9999) + "" + (0, fun_1.random)(10000, 99999)).toString();
    var rep = Math.floor(len / 32);
    var sup = len % 32;
    var res = "";
    for (var i = 0; i < rep; ++i) {
        res += str;
    }
    res += str.substring(0, sup);
    return res;
}
exports.SignNonceStr = SignNonceStr;
